// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .CS}

//-------------MAIN---------------
thread 'EX_IV' 


var
5@:int
9@:int
end

Model.Load(#MICRO_UZI)
Model.Load(#MP5LNG)
Model.Load(#AK47)
Model.Load(#M4)
Model.Load(#TEC9)
038B: load_requested_models 

while true
    wait 0 
    if or
        not Model.Available(#MICRO_UZI)
        not Model.Available(#MP5LNG)
        not Model.Available(#AK47)
        not Model.Available(#M4)
        not Model.Available(#TEC9)
    jf break
end
0209: 6@ = random_int_in_ranges 29 32 
9@ = 4
while true
    repeat
    wait 0
    until if Player.Defined(0)
    Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
    if 0AE1: 3@ = random_actor_near_point 0@ 1@ 2@ in_radius 265.0 find_next 1 pass_deads 0 //IF and SET 
    JF continue
    if  not 3@ == -1 
    JF continue
    089F: get_actor 3@ pedtype_to 5@ 
    if and                                 
        5@ >= 7 
        not 5@ >= 14 
    JF continue    
    if Actor.Driving(3@)                                                                                                                                                       
    JF continue   
    4@ = Actor.CurrentCar(3@)
    if Actor.InCar(3@, 4@)                                                                                                                                                 
    JF continue
    if not car.Wrecked(4@)                                            
    then                                                              
        Car.SetMaxSpeed(4@, 10.0)                                                                                                                                                               
        Car.DoorStatus(4@) = 2                                        
    end                                                                                                                                                                                                          
    if 8431:   not car 4@ passenger_seat_free 0                                                                                                                            
    JF continue
    if not actor.Dead(3@)
    JF continue                                                                                                                                                               
    8@ = Marker.CreateAboveActor(3@)                                                                                                                                                                                                                                                                                            
    Marker.SetColor(8@, 7@)                                                                                                                                                                                                                                                                                                     
    Marker.SetIconSize(8@, 2)                                                                                                                                                                                                                                                                                                   
    //drive by_____________________________________________                                                                                                                                                                                                                                                                     
    0978: copy_decision_maker 65540 to 10@                                                                                                                                                                                                                                                                                      
    0709: set_decision_maker 10@ on_event 36 taskID 1022 respect 0.0 hate 100.0 like 0.0 dislike 0.0 in_car 1 on_foot 0 // see *.ped files                                                                                                                                                                                      
    0709: set_decision_maker 10@ on_event 37 taskID 1022 respect 0.0 hate 100.0 like 0.0 dislike 0.0 in_car 1 on_foot 0 // see *.ped files                                                                                                                                                                                      
    0709: set_decision_maker 10@ on_event 36 taskID 1024 respect 0.0 hate 50.0 like 0.0 dislike 0.0 in_car 0 on_foot 1 // see *.ped files                                                                                                                                                                                       
    060B: set_actor 3@ decision_maker_to 10@                                                                                                                                                                                                                                                                                    
    //_____________________________________________________                                                                                                                                                                                                                                                                     
    0433: set_actor 3@ criminal_flag 1                                                                                                                                                                                                                                                                                          
    if 82D8:   not actor 3@ current_weapon == 6@                                                                                                                                                                                                                                                                                
    then Actor.GiveWeaponAndAmmo(3@, 6@, 9000)                                                                                                                                                                                                                                                                                   
    end                                                                                                                                                                                                                                                                                                                         
    9@ += 1                                                                                                                                                                                                                                                                                                                     
    if 9@ >= 22                                                                                                                                                                                                                                                                                                                 
    then 9@ = 4                                                                                                                                                                                                                                                                                                                 
    end                                                                                                                                                                                                                                                                                                                         
    if not 9@ == 5@ //ntpd                                                                                                                                                                                                                                                                                                            
    then                                                                                                                                                                                                                                                                                                                        
        wait 0                                                                                                                                                                                                                                                                                                                  
        077A: set_actor 3@ acquaintance 4 to_actors_pedtype 9@ // see ped.dat
        if 00F2:   actor 3@ near_actor $PLAYER_ACTOR radius 30.0 30.0 0 
        then
            0713: actor 3@ driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 150.0 8 1 firing_rate 100
        end                                                                                                                                                                                                                                                    
    end                                                                                                                                                                                                                                                                                                                         
end